home *** CD-ROM | disk | FTP | other *** search
/ Disc to the Future 2 / Disc to the Future Part II Programmer's Reference (Wayzata Technology)(6013)(1992).bin / MAC / THINKC / 5 / CHASSIS_ / HELPDRAW.C < prev    next >
Text File  |  1992-05-14  |  1KB  |  47 lines

  1. /************************************************************************************/
  2. /*    HelpDrawProc                                                                    */
  3. /*  This routine should be invoked between a BeginUpdate and EndUpdate sequence,    */
  4. /*    usually after an Update event in the main event loop.                            */
  5. /************************************************************************************/
  6.  
  7. #include "MyHeaders.h"
  8.  
  9. int HelpDrawProc ()
  10. {
  11.     int        HelpDrawRetCode = 0;
  12.     
  13.     SetPort (windTbl[1].windPtr);                /* set as the grafPort                */
  14.  
  15.     myActionProc (windTbl[1].windCntlH[0], 0);
  16.     
  17.     DrawControls (windTbl[1].windPtr);            /* draw un-hidden controls            */
  18.     FrameRect (&(**windTbl[1].windCntlH[0]).contrlRect);    /* frame the hidden one    */
  19.     
  20.  
  21.     TEUpdate (&(**windTbl[1].windTEH[0]).viewRect,
  22.             windTbl[1].windTEH[0]);
  23.     
  24.     LUpdate ((*(**helpList).port).visRgn, helpList);
  25.     
  26.     workRect = (**windTbl[1].windTEH[0]).viewRect;
  27.     InsetRect (&workRect, -1, -1);
  28.     FrameRect (&workRect);
  29.     
  30.     workRect = (**helpList).rView;
  31.     InsetRect (&workRect, -1, -1);
  32.     FrameRect (&workRect);
  33.     
  34.     workRect.bottom = workRect.top;
  35.     workRect.top = workRect.bottom -20;
  36.     workRect.right += 16;
  37.     TextFont(geneva);
  38.     TextFace(bold);
  39.     TextSize(12);
  40.     TextBox ("Table of Contents", 17, &workRect, teJustCenter);
  41.     TextFont(monaco);
  42.     TextFace(NIL);
  43.     TextSize(9);
  44.     
  45.     return HelpDrawRetCode;
  46. }
  47.